<?php

#    Document   : site_content
#    Created on : May 9, 2011, 6:14:22 PM
#    Author     : ClarkT AKA FalleN
#    Company    : Amodity
#    Web        : http://www.amodity.com
#    Copyright  : 2011

class site_content extends CI_Model {

    function welcomeUser() {
        //get user session info
        $this->load->library('auth');

        if ($this->auth->logged_in()) {
            echo '<div id="logout">' . $this->lang->line('header_welcome') . ' ' . anchor('usercp', $this->session->userdata('username')) . '  ' . anchor('usercp/logout', $this->lang->line('g_logout')) . '</div>';
        }
    }

    function loginlinks() {
        $this->load->library('auth');
        if ($this->auth->logged_in()) {
            echo anchor('usercp', $this->lang->line('cp_cp'));
        } else {
            echo anchor('login', $this->lang->line('g_login'));
        }
    }

}

?>
